package com.css.zfzx.fxpg.modules.buildings.data.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * @author andy
 * @date 2020-11-11
 */
@Data
public class FxBuildingsVO implements Serializable, IExcelDataModel, IExcelModel {

    /**
     * 建筑面积
     */
    @NotNull(message = "缺失")
    @Excel(name = "建筑面积", width = 15)
    private Float buildingArea;
    /**
     * 结构类型
     */
    @NotNull(message = "缺失")
    @Excel(name = "结构类型", width = 15)
    private String structureType;
    /**
     * 省
     */
    @NotNull(message = "缺失")
    @Excel(name = "省", width = 15)
    private String province;
    /**
     * 人数
     */
    @NotNull(message = "缺失")
    @Excel(name = "人数", width = 15)
    private Integer peopleNumber;
    /**
     * 年代
     */
    @NotNull(message = "缺失")
    @Excel(name = "年代", width = 15)
    private String year;
    /**
     * 是否有效,0:无效,1:有效
     */
    private String isValid;
    /**
     * 行政区划组合编码+探槽码
     */
    private String objectCode;
    /**
     * 现设防烈度
     */
    @NotNull(message = "缺失")
    @Excel(name = "现设防烈度", width = 15)
    private Integer currentIntensity;
    /**
     * 用途
     */
    @NotNull(message = "缺失")
    @Excel(name = "用途", width = 15)
    private String purpose;
    /**
     * 区（县）
     */
    @NotNull(message = "缺失")
    @Excel(name = "区（县）", width = 15)
    private String area;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 修改人
     */
    private String updateUser;
    /**
     * 分区标识
     */
    private String partitionFlag;
    /**
     * 主键id
     */
    @NotNull(message = "缺失")
    @Excel(name = "主键id", width = 15)
    private String id;
    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date updateTime;
    /**
     * 市
     */
    @NotNull(message = "缺失")
    @Excel(name = "市", width = 15)
    private String city;
    /**
     * 建筑物名称
     */
    @NotNull(message = "缺失")
    @Excel(name = "建筑物名称", width = 15)
    private String buildingName;
    /**
     * 层数
     */
    @NotNull(message = "缺失")
    @Excel(name = "层数", width = 15)
    private Integer floorNumber;

    private String provinceName;
    private String cityName;
    private String areaName;
    private String structureTypeName;
    private Double Lon;
    private Double Lat;

    private Integer rowNum;
    private String errorMsg;
}